package com.secxiot.provider.task.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;

/**
 * 任务数据传输
 */
@ApiModel
@NoArgsConstructor
@ToString
@Data
public class TaskBaseDto implements Serializable {
    private static final long serialVersionUID = 3909436578743466822L;

    /**
     * 任务类型，字典：交接，输液······
     */
    @ApiModelProperty(value = "任务类型，字典：00002", required = true)
    @NotEmpty
    private String taskType;

    /**
     * 发送者id
     */
    @ApiModelProperty(value = "发送者id", required = true)
    @NotEmpty
    private Long senderId;

    /**
     * 发送者姓名
     */
    @ApiModelProperty(value = "发送者姓名", required = true)
    @NotEmpty
    private String senderName;

    /**
     * 紧急程度，字典
     */
    @ApiModelProperty(value = "紧急程度，字典:00003,默认值：0000300001", required = true)
    private String priority = "0000300001";

    /**
     * 是否需要确认，0：否 1：是
     */
    @ApiModelProperty(value = "是否需要确认，0：否 1：是,默认0", required = true)
    private Integer confirmRequired = 0;

    @ApiModelProperty(value = "接收者id集合" ,required = true)
    private List<Long> receiverIds = Collections.emptyList();

}
